package com.hfkh.keyun.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hfkh.keyun.common.ApiResult;
import com.hfkh.keyun.entity.Carousel;
import com.hfkh.keyun.exception.BusinessException;
import com.hfkh.keyun.vo.CarouselVo;

import java.io.IOException;
import java.util.List;


public interface CarouselService  extends IService<Carousel> {

    List<Carousel> findByLimit(int num);

    ApiResult queryPage(String imgTitle, Integer page, Integer size);

    ApiResult addCarousel(Integer id,CarouselVo carouselVo) throws IOException, BusinessException;

}
